package com.wedata.weimob;

import cn.hutool.crypto.digest.MD5;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONObject;
import com.wedata.HttpUtils;

import java.util.*;

/**
 * 微盟分销文档：
 * https://doc.weimobcloud.com/detail?menuId=19&childMenuId=1&tag=2396&id=3437&isold=2
 * 具体查看微盟分销调研文档
 */
public class 微盟分销业务 {

    //{"wid":11051186860,"leaderId":2867344314,"leaderLevelId":100228276,
    public static void main(String[] args) {
        getUserInfo("18867363985","");
        //updateDistributorLevel();
        //customerDistributorGet("11051186860");
       //{"bosId":4002554743846,"phone":"18867363985","zone":"","wid":10898133920,"nickName":"","avatar":""}}
        //{"bosId":4002554743846,"phone":"13670279423","zone":"","wid":10898133920,"nickName":"","avatar":""}}
        //getUserInfo("","10536934819");
        //userChannelList("10536934819");
        //getUserInfo("16602048993","");
        //getDistributorStatus("2943537479");
        //customerDistributorGet("10890464494");
        //getDistributorList(11124999565L);
        //getDistributorList(null);
        //getLevelList();
        //getUserInfo("19311639893","");
        //getDistributorStatus("");
        //getCustomerCoupon("10554880572");
        //getUserInfo("","10907036840");
        /*getGoodsDec();
        queryGoodsDetail();*/
        //getGoodsUrl();
    }

    //查询分销商品列表
    public static void getRewardGoodsList(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        //body.set("vidType",10);
        body.set("pageSize",10);
        body.set("pageNum",1);
        body.set("requestSource",1);
        body.set("goodsName","健萌专享");
        /*List<Long> goodsIdList = new ArrayList<>();
        goodsIdList.add(123284248797846L);
        goodsIdList.add(124649776797846L);
        body.set("goodsIdList",goodsIdList);*/

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/reward/goods/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"pageNum":null,"pageSize":null,"totalCount":1039,"goodsList":[{"goodsId":123285873797846,"goodsName":"【黑晶石研磨.保留活性物质】Soileta有机抹茶","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":111.8000,"maxCostPrice":111.8000,"minSalePrice":201.0000,"maxSalePrice":201.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173396094797846,"costPrice":111.8000,"salePrice":201.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":6.03,"weikeMaxCommission":3,"preWeikeMaxReward":6.03,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":20.10,"weikeMaxCommission":10,"preWeikeMaxReward":20.10,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":10.05,"weikeMaxCommission":5,"preWeikeMaxReward":10.05,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":20.10,"weikeMaxCommission":10,"preWeikeMaxReward":20.10,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/e1ee0c08045d41a78dec0b07b27d2787.jpg"},{"goodsId":123284248797846,"goodsName":"抖音订单转换积分测试商品勿下单","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":false,"minCostPrice":0.0000,"maxCostPrice":0.0000,"minSalePrice":1.0000,"maxSalePrice":1.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173386490797846,"costPrice":0.0000,"salePrice":1.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":0.03,"weikeMaxCommission":3,"preWeikeMaxReward":0.03,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":0.10,"weikeMaxCommission":10,"preWeikeMaxReward":0.10,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":0.05,"weikeMaxCommission":5,"preWeikeMaxReward":0.05,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":0.10,"weikeMaxCommission":10,"preWeikeMaxReward":0.10,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/e7e30d29549349fc8cbab7c01a481351.jpg"},{"goodsId":123284127797846,"goodsName":"【科研工艺研磨.保留更多营养】Soileta冻干蓝莓粉","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":70.0000,"maxCostPrice":70.0000,"minSalePrice":127.0000,"maxSalePrice":127.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173386811797846,"costPrice":70.0000,"salePrice":127.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":3.81,"weikeMaxCommission":3,"preWeikeMaxReward":3.81,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":12.70,"weikeMaxCommission":10,"preWeikeMaxReward":12.70,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":6.35,"weikeMaxCommission":5,"preWeikeMaxReward":6.35,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":12.70,"weikeMaxCommission":10,"preWeikeMaxReward":12.70,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/be5c30c064e3493e9d4b7e17d119c850.jpg"},{"goodsId":123283954797846,"goodsName":"【源自北美湿地.生态种植】Soileta冻干蔓越莓粉","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":70.0000,"maxCostPrice":70.0000,"minSalePrice":127.0000,"maxSalePrice":127.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173385513797846,"costPrice":70.0000,"salePrice":127.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":3.81,"weikeMaxCommission":3,"preWeikeMaxReward":3.81,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":12.70,"weikeMaxCommission":10,"preWeikeMaxReward":12.70,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":6.35,"weikeMaxCommission":5,"preWeikeMaxReward":6.35,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":12.70,"weikeMaxCommission":10,"preWeikeMaxReward":12.70,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/4f241574f4ca462eaa4f19fc55443db5.jpg"},{"goodsId":123283652797846,"goodsName":"【拒绝果汁粉.真正的果肉冻干】Soileta冻干巴西莓粉","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":120.0000,"maxCostPrice":120.0000,"minSalePrice":218.0000,"maxSalePrice":218.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173381864797846,"costPrice":120.0000,"salePrice":218.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":6.54,"weikeMaxCommission":3,"preWeikeMaxReward":6.54,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":21.80,"weikeMaxCommission":10,"preWeikeMaxReward":21.80,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":10.90,"weikeMaxCommission":5,"preWeikeMaxReward":10.90,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":21.80,"weikeMaxCommission":10,"preWeikeMaxReward":21.80,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/6ce27320d3714962819b266431ef9358.jpg"},{"goodsId":123283646797846,"goodsName":"【富含多种矿物质】Soileta墨西哥进口有机奇亚籽","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":45.0000,"maxCostPrice":45.0000,"minSalePrice":80.0000,"maxSalePrice":80.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173382465797846,"costPrice":45.0000,"salePrice":80.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":2.40,"weikeMaxCommission":3,"preWeikeMaxReward":2.40,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":8.00,"weikeMaxCommission":10,"preWeikeMaxReward":8.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":4.00,"weikeMaxCommission":5,"preWeikeMaxReward":4.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":8.00,"weikeMaxCommission":10,"preWeikeMaxReward":8.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/ce37672718404604af3f236d83c94782.jpg"},{"goodsId":123283103797846,"goodsName":"【辅助胶原蛋白.吃出肌肤元气】Soileta冻干针叶樱桃粉","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":105.0000,"maxCostPrice":105.0000,"minSalePrice":169.0000,"maxSalePrice":169.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173379889797846,"costPrice":105.0000,"salePrice":169.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":5.07,"weikeMaxCommission":3,"preWeikeMaxReward":5.07,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":16.90,"weikeMaxCommission":10,"preWeikeMaxReward":16.90,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":8.45,"weikeMaxCommission":5,"preWeikeMaxReward":8.45,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":16.90,"weikeMaxCommission":10,"preWeikeMaxReward":16.90,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/ba033b6f79554b80bbb6f0193027b3a1.jpg"},{"goodsId":123282432797846,"goodsName":"【非油炸好面.轻食无负担】诚卡六种口味荞麦轻食面拌面汤面","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":24.5000,"maxCostPrice":24.5000,"minSalePrice":44.0000,"maxSalePrice":44.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173378358797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173378359797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173378380797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173378381797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173378382797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173378383797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173378384797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173378385797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173378386797846,"costPrice":24.5000,"salePrice":44.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":1.32,"weikeMaxCommission":3,"preWeikeMaxReward":1.32,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":4.40,"weikeMaxCommission":10,"preWeikeMaxReward":4.40,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":2.20,"weikeMaxCommission":5,"preWeikeMaxReward":2.20,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":4.40,"weikeMaxCommission":10,"preWeikeMaxReward":4.40,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/1691beaa5fd743e8bdd11f26915db3af.jpg"},{"goodsId":123279712797846,"goodsName":"【全麦厚切.细软绵密】食欣食益全麦厚切牛乳吐司","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":21.0000,"maxCostPrice":21.0000,"minSalePrice":49.9000,"maxSalePrice":49.9000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173363626797846,"costPrice":21.0000,"salePrice":49.9000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":1.50,"weikeMaxCommission":3,"preWeikeMaxReward":1.50,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":4.99,"weikeMaxCommission":10,"preWeikeMaxReward":4.99,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":2.50,"weikeMaxCommission":5,"preWeikeMaxReward":2.50,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":4.99,"weikeMaxCommission":10,"preWeikeMaxReward":4.99,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/03255f817e9a4cc88ff905ef35468978.jpg"},{"goodsId":123278121797846,"goodsName":"【复合配方.多维养护】健美生减脂加速器，维B维C维D任选！","vid":6001490628846,"vidType":null,"createVid":6001490628846,"isSDP":true,"createVidType":null,"classifyIdList":null,"availableStock":null,"sales":null,"isPutaway":true,"isMultiSku":true,"minCostPrice":33.3300,"maxCostPrice":121.5300,"minSalePrice":199.0000,"maxSalePrice":399.0000,"promotionTagList":null,"goodsBizTagList":null,"goodsShowType":1,"sellModelType":null,"commissionType":1,"rewardProcessType":1,"saleChannelType":1,"isCanSell":true,"storeSalesProhibition":false,"skuList":[{"goodsId":null,"skuId":173390872797846,"costPrice":121.5300,"salePrice":399.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173390873797846,"costPrice":78.8900,"salePrice":299.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173390874797846,"costPrice":45.5600,"salePrice":199.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173390875797846,"costPrice":33.3300,"salePrice":199.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]},{"goodsId":null,"skuId":173390876797846,"costPrice":42.6400,"salePrice":199.0000,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":null,"weikeMaxCommission":3,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":null,"weikeMaxCommission":5,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":null,"weikeMaxCommission":0,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":null,"weikeMaxCommission":10,"preWeikeMaxReward":null,"inviterMinCommission":0,"preInviterMinReward":null,"inviterMaxCommission":0,"preInviterMaxReward":null}]}],"calcCommissionWay":2,"isShowInviterCommission":true,"customSort":null,"commissionList":[{"level":{"levelId":100099798,"levelName":"空白"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100099807,"levelName":"WE商城KOC"},"weikeMinCommission":3,"preWeikeMinReward":5.97,"weikeMaxCommission":3,"preWeikeMaxReward":11.97,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100155100,"levelName":"外部KOC"},"weikeMinCommission":10,"preWeikeMinReward":19.90,"weikeMaxCommission":10,"preWeikeMaxReward":39.90,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100219135,"levelName":"教练组"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100221052,"levelName":"营养师"},"weikeMinCommission":5,"preWeikeMinReward":9.95,"weikeMaxCommission":5,"preWeikeMaxReward":19.95,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100222839,"levelName":"陪伴官"},"weikeMinCommission":0,"preWeikeMinReward":0.00,"weikeMaxCommission":0,"preWeikeMaxReward":0.00,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00},{"level":{"levelId":100223747,"levelName":"营养师二级"},"weikeMinCommission":10,"preWeikeMinReward":19.90,"weikeMaxCommission":10,"preWeikeMaxReward":39.90,"inviterMinCommission":0,"preInviterMinReward":0.00,"inviterMaxCommission":0,"preInviterMaxReward":0.00}],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/fd744f7bd36f489087f697542cba6124.png"}]},"globalTicket":"8299-1702976217.484-saas-w1-743-25563453715","monitorTrackId":"49fd4de0-2ddc-416b-8ac3-645c28e568a0"}

    }



    //释放用户渠道
    public static void userUnBind(String wid){//这个应该可以绑定小程序的appid
        JSONObject body = new JSONObject();
        //body.set("source",10);//渠道来源类型：0-微信公众号；1-微信小程序；2-微信unionid；4-手机号。
        body.set("source",4);//渠道来源类型：0-微信公众号；1-微信小程序；2-微信unionid；4-手机号。
        body.set("appId","default");//应用 appid，例如公众号 appid 或小程序 appid。如果是手机号或 unionid，则传入 default。
        body.set("originalId","19311609387");//渠道内的关联字段，比如微信是 openid，手机号渠道对应手机号
        body.set("wid", wid);//用户wid

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/user/channel/unbind?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"3597-1702710087.509-saas-w1-724-25331284574","code":{"errmsg":"您没有调用该API的权限！","errcode":80001001000126}}
        //{"globalTicket":"28369-1702862831.344-saas-w1-779-25222253220","code":{"errcode":0,"errmsg":"响应成功"},"data":true}
    }
    //获取用户渠道信息列表
    public static String userChannelList(String wid){//这个应该可以绑定小程序的appid
        JSONObject body = new JSONObject();
        body.set("wid", wid);//用户wid
        //body.set("channelTypeList", new Integer[]{4});
        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/user/channel/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"396-1702868324.329-saas-w1-727-25155240582","code":{"errcode":0,"errmsg":"success"},"data":{"bosId":4002554743846,"superWid":10898133920,"userChannelInfoDtoList":[{"channelType":4,"appId":"default","openId":"18867363985","basicChannelInfo":{"phone":"18867363985","nickName":null,"gender":null,"avatarUrl":null,"country":null,"province":null,"city":null,"language":null,"unionid":null,"remark":null,"createTime":"2023-12-13T08:51:35.000+00:00","updateTime":"2023-12-13T08:51:35.000+00:00"},"extendChannelInfo":null}]}}
        return resultStr;
    }
    //绑定渠道和wid
    public static void userBind(){//这个应该可以绑定小程序的appid
        JSONObject body = new JSONObject();
        body.set("source",4);//渠道来源类型：0-微信公众号；1-微信小程序；2-微信unionid；4-手机号。
        body.set("appId","default");//应用 appid，例如公众号 appid 或小程序 appid。如果是手机号或 unionid，则传入 default。
        body.set("originalId","19311609387");//渠道内的关联字段，比如微信是 openid，手机号渠道对应手机号
        body.set("wid","10911691600");//用户wid

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/user/channel/bind?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"3597-1702710087.509-saas-w1-724-25331284574","code":{"errmsg":"您没有调用该API的权限！","errcode":80001001000126}}
        //{"globalTicket":"28369-1702862831.344-saas-w1-779-25222253220","code":{"errcode":0,"errmsg":"响应成功"},"data":true}
    }

    //登出接口
    public static void ssoLogout(){
        JSONObject body = new JSONObject();
        body.set("openUserId","18867363985");

        String resultStr = HttpUtil.post("https://dopen.weimob.com/api/1_0/janus/core/logout?accesstoken="+postRequestWithSign(), body.toString());
        //String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/user/auth/sso/logout?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"389-1702700941.137-saas-w1-737-25011208181","code":{"errcode":80001001000126,"errmsg":"您没有调用该API的权限！"}}
        //{"globalTicket":"4cee5967-5d97-44ce-aad3-525f8f57fb80","code":{"errcode":"0","errmsg":"成功"},"data":true}
    }
    //登录接口
    public static void ssoLogin(){
        JSONObject body = new JSONObject();
        body.set("openUserId","13670279423");
        /*body.set("nickname","");
        body.set("headUrl","");
        body.set("phone","");*/

        String resultStr = HttpUtil.post("https://dopen.weimob.com/api/1_0/janus/core/login?accesstoken="+postRequestWithSign(), body.toString());
        //String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/user/auth/sso/login?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"389-1702700941.137-saas-w1-737-25011208181","code":{"errcode":80001001000126,"errmsg":"您没有调用该API的权限！"}}
        //{"globalTicket":"9dc24101-1a51-46cc-abdf-28dfd8cf7f82","code":{"errcode":"0","errmsg":"成功"},"data":{"appTicket":"b2c1627b0a694096bdfa873e6d44fca2","expires":1000000000}}
    }

    //查询用户券列表
    public static void getCustomerCoupon(String wid){
        JSONObject body = new JSONObject();
        //body.set("wid","10898133920");
        body.set("wid",wid);
        body.set("statusRange",new Integer[]{1,2,3});
        body.set("pageSize",10);
        body.set("pageNum",1);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_crm/v2.0/coupon/customer/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"389-1702700941.137-saas-w1-737-25011208181","code":{"errcode":80001001000126,"errmsg":"您没有调用该API的权限！"}}
        //{"code":{"bizErrmsg":null,"errcode":"0","errmsg":"处理成功"},"data":{"pageList":[{"acceptInfo":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":[145],"skuInfos":null,"skuNum":null,"vidInfos":null},"allSceneDTO":null,"allSceneList":[],"basicTemplateId":null,"belongMerchantId":null,"bosId":null,"canGift":null,"canPresentCancel":null,"canShare":null,"cashConditionStr":null,"code":"123456","couponSubType":11,"couponTemplateId":66831671,"couponType":3,"couponTypeDesc":null,"cycleUnuseRule":null,"cycleUseRule":null,"desc":"APP专属","discountAmount":0.03,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n领券后7天内适用。\n单笔订单不允许叠加使用。\n券不可与其他优惠同享。\n","freightReduceType":null,"giftCountLimit":null,"hasGiftLimit":null,"hasUnuseTime":null,"isAllUseScene":true,"isPartTimeUse":null,"maxCashTicketAmt":null,"maxGoodsCount":null,"merchantId":null,"minCashTicketAmt":null,"minGoodsCount":null,"name":"鸡肉肠兑换券","outer":null,"platformType":1,"preferentialWay":null,"pricingType":null,"productId":146,"productInstanceId":2583529846,"productVersionId":10003,"publishTime":"2023-12-18 09:15:14","reduceDuration":null,"reducePriceType":1,"scopeDesc":null,"sendEndDate":null,"sendStartDate":null,"sendTimeType":null,"status":1,"subName":null,"subTitle":null,"thirdTemplateId":null,"updateTime":"2023-12-18 09:15:14","useThreshold":null,"userTakeDayLimit":null,"userTakeLimit":null,"validDate":{"subUseTimeType":2,"useDelayDays":null,"useEndTime":"2024-07-10 11:00:00","useStartTime":"2023-12-10 11:00:00","useTimeType":2,"validDateDesc":"2023.12.10 11:00~2024.07.10 11:00","validDays":null},"vid":null},{"acceptInfo":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":4,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":true,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"allSceneDTO":null,"allSceneList":[],"basicTemplateId":null,"belongMerchantId":null,"bosId":null,"canGift":null,"canPresentCancel":null,"canShare":null,"cashConditionStr":null,"code":"02590983285728501760","couponSubType":11,"couponTemplateId":63294434,"couponType":1,"couponTypeDesc":null,"cycleUnuseRule":null,"cycleUseRule":null,"desc":"新会员券包","discountAmount":5.00,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"除课程及自营商品外，所有商品适用。\n单笔订单不允许叠加使用。\n券可与其他优惠同享。","freightReduceType":null,"giftCountLimit":null,"hasGiftLimit":null,"hasUnuseTime":null,"isAllUseScene":true,"isPartTimeUse":null,"maxCashTicketAmt":null,"maxGoodsCount":null,"merchantId":null,"minCashTicketAmt":null,"minGoodsCount":null,"name":"5元无门槛","outer":null,"platformType":1,"preferentialWay":null,"pricingType":null,"productId":146,"productInstanceId":2583529846,"productVersionId":10003,"publishTime":"2023-12-14 05:01:16","reduceDuration":null,"reducePriceType":1,"scopeDesc":null,"sendEndDate":null,"sendStartDate":null,"sendTimeType":null,"status":3,"subName":null,"subTitle":null,"thirdTemplateId":null,"updateTime":"2023-12-17 06:30:00","useThreshold":null,"userTakeDayLimit":null,"userTakeLimit":null,"validDate":{"subUseTimeType":2,"useDelayDays":null,"useEndTime":"2023-12-17 05:01:16","useStartTime":"2023-12-14 05:01:16","useTimeType":2,"validDateDesc":"2023.12.14 05:01~2023.12.17 05:01","validDays":null},"vid":null},{"acceptInfo":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":4,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":true,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"allSceneDTO":null,"allSceneList":[],"basicTemplateId":null,"belongMerchantId":null,"bosId":null,"canGift":null,"canPresentCancel":null,"canShare":null,"cashConditionStr":null,"code":"02590983285094957056","couponSubType":11,"couponTemplateId":63289465,"couponType":1,"couponTypeDesc":null,"cycleUnuseRule":null,"cycleUseRule":null,"desc":"新会员券包","discountAmount":25.00,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"除课程及自营商品外，所有商品适用。 \n单笔订单不允许叠加使用。 \n券可与其他优惠同享。","freightReduceType":null,"giftCountLimit":null,"hasGiftLimit":null,"hasUnuseTime":null,"isAllUseScene":true,"isPartTimeUse":null,"maxCashTicketAmt":null,"maxGoodsCount":null,"merchantId":null,"minCashTicketAmt":null,"minGoodsCount":null,"name":"25元优惠券","outer":null,"platformType":1,"preferentialWay":null,"pricingType":null,"productId":146,"productInstanceId":2583529846,"productVersionId":10003,"publishTime":"2023-12-14 05:01:16","reduceDuration":null,"reducePriceType":1,"scopeDesc":null,"sendEndDate":null,"sendStartDate":null,"sendTimeType":null,"status":3,"subName":null,"subTitle":null,"thirdTemplateId":null,"updateTime":"2023-12-17 06:30:00","useThreshold":199.00,"userTakeDayLimit":null,"userTakeLimit":null,"validDate":{"subUseTimeType":2,"useDelayDays":null,"useEndTime":"2023-12-17 05:01:16","useStartTime":"2023-12-14 05:01:16","useTimeType":2,"validDateDesc":"2023.12.14 05:01~2023.12.17 05:01","validDays":null},"vid":null},{"acceptInfo":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":4,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":true,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"allSceneDTO":null,"allSceneList":[],"basicTemplateId":null,"belongMerchantId":null,"bosId":null,"canGift":null,"canPresentCancel":null,"canShare":null,"cashConditionStr":null,"code":"02590983284409319424","couponSubType":11,"couponTemplateId":63274411,"couponType":1,"couponTypeDesc":null,"cycleUnuseRule":null,"cycleUseRule":null,"desc":"新会员券包","discountAmount":10.00,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"除课程及自营商品外，所有商品适用。 \n单笔订单不允许叠加使用。 \n券可与其他优惠同享。","freightReduceType":null,"giftCountLimit":null,"hasGiftLimit":null,"hasUnuseTime":null,"isAllUseScene":true,"isPartTimeUse":null,"maxCashTicketAmt":null,"maxGoodsCount":null,"merchantId":null,"minCashTicketAmt":null,"minGoodsCount":null,"name":"10元优惠券","outer":null,"platformType":1,"preferentialWay":null,"pricingType":null,"productId":146,"productInstanceId":2583529846,"productVersionId":10003,"publishTime":"2023-12-14 05:01:16","reduceDuration":null,"reducePriceType":1,"scopeDesc":null,"sendEndDate":null,"sendStartDate":null,"sendTimeType":null,"status":3,"subName":null,"subTitle":null,"thirdTemplateId":null,"updateTime":"2023-12-17 06:30:00","useThreshold":99.00,"userTakeDayLimit":null,"userTakeLimit":null,"validDate":{"subUseTimeType":2,"useDelayDays":null,"useEndTime":"2023-12-17 05:01:16","useStartTime":"2023-12-14 05:01:16","useTimeType":2,"validDateDesc":"2023.12.14 05:01~2023.12.17 05:01","validDays":null},"vid":null},{"acceptInfo":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":4,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":true,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"allSceneDTO":null,"allSceneList":[],"basicTemplateId":null,"belongMerchantId":null,"bosId":null,"canGift":null,"canPresentCancel":null,"canShare":null,"cashConditionStr":null,"code":"02590983284409319425","couponSubType":11,"couponTemplateId":63274411,"couponType":1,"couponTypeDesc":null,"cycleUnuseRule":null,"cycleUseRule":null,"desc":"新会员券包","discountAmount":10.00,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"除课程及自营商品外，所有商品适用。 \n单笔订单不允许叠加使用。 \n券可与其他优惠同享。","freightReduceType":null,"giftCountLimit":null,"hasGiftLimit":null,"hasUnuseTime":null,"isAllUseScene":true,"isPartTimeUse":null,"maxCashTicketAmt":null,"maxGoodsCount":null,"merchantId":null,"minCashTicketAmt":null,"minGoodsCount":null,"name":"10元优惠券","outer":null,"platformType":1,"preferentialWay":null,"pricingType":null,"productId":146,"productInstanceId":2583529846,"productVersionId":10003,"publishTime":"2023-12-14 05:01:16","reduceDuration":null,"reducePriceType":1,"scopeDesc":null,"sendEndDate":null,"sendStartDate":null,"sendTimeType":null,"status":3,"subName":null,"subTitle":null,"thirdTemplateId":null,"updateTime":"2023-12-17 06:30:00","useThreshold":99.00,"userTakeDayLimit":null,"userTakeLimit":null,"validDate":{"subUseTimeType":2,"useDelayDays":null,"useEndTime":"2023-12-17 05:01:16","useStartTime":"2023-12-14 05:01:16","useTimeType":2,"validDateDesc":"2023.12.14 05:01~2023.12.17 05:01","validDays":null},"vid":null},{"acceptInfo":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":4,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":true,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"allSceneDTO":null,"allSceneList":[],"basicTemplateId":null,"belongMerchantId":null,"bosId":null,"canGift":null,"canPresentCancel":null,"canShare":null,"cashConditionStr":null,"code":"02590983282820734976","couponSubType":11,"couponTemplateId":63275449,"couponType":1,"couponTypeDesc":null,"cycleUnuseRule":null,"cycleUseRule":null,"desc":"新会员券包","discountAmount":50.00,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"除课程及自营商品外，所有商品适用。 \n单笔订单不允许叠加使用。 \n券可与其他优惠同享。","freightReduceType":null,"giftCountLimit":null,"hasGiftLimit":null,"hasUnuseTime":null,"isAllUseScene":true,"isPartTimeUse":null,"maxCashTicketAmt":null,"maxGoodsCount":null,"merchantId":null,"minCashTicketAmt":null,"minGoodsCount":null,"name":"50元优惠券","outer":null,"platformType":1,"preferentialWay":null,"pricingType":null,"productId":146,"productInstanceId":2583529846,"productVersionId":10003,"publishTime":"2023-12-14 05:01:16","reduceDuration":null,"reducePriceType":1,"scopeDesc":null,"sendEndDate":null,"sendStartDate":null,"sendTimeType":null,"status":3,"subName":null,"subTitle":null,"thirdTemplateId":null,"updateTime":"2023-12-17 06:30:00","useThreshold":299.00,"userTakeDayLimit":null,"userTakeLimit":null,"validDate":{"subUseTimeType":2,"useDelayDays":null,"useEndTime":"2023-12-17 05:01:16","useStartTime":"2023-12-14 05:01:16","useTimeType":2,"validDateDesc":"2023.12.14 05:01~2023.12.17 05:01","validDays":null},"vid":null}],"pageNum":1,"pageSize":10,"totalCount":6},"globalTicket":"390-1702862419.233-saas-w1-737-25150515473","monitorTrackId":"a3456144-5b7d-4a6d-985d-7ce1e518e767"}
    }

    //发送优惠券给指定客户
    public static String receiveCoupon(String wid){
        JSONObject body = new JSONObject();
        List couponNums = new ArrayList();
        JSONObject coupon = new JSONObject();
        coupon.set("couponTemplateId",66823917);
        coupon.set("num",1);
        coupon.set("requestId",System.currentTimeMillis());
        //coupon.set("code",123456);
        //coupon.set("effectStartTime","2023-12-10 11:00:00");
        //coupon.set("effectEndTime","2024-07-10 11:00:00");
        couponNums.add(coupon);
        body.set("couponNums", couponNums);

        body.set("wid",wid);
        body.set("scene","945000");
        body.set("vid",6001490628846L);
        //body.set("vidType",2);
        body.set("sceneId","自定义参数");


        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_crm/v2.0/coupon/receive?accesstoken="+postRequestWithSign(), body.toString());
        //System.out.println(resultStr);
        //{"code":{"bizErrmsg":null,"errcode":"0","errmsg":"处理成功"},"data":{"applyNo":null,"couponResultList":[{"canReceive":2,"codes":["02600079669075058688"],"couponTemplateId":66823917,"errCode":null,"errMsg":null,"expDate":null,"failureNum":0,"isSuccess":true,"name":"健萌专享♥首单15元立减金","wid":2916708215}],"failedCount":0,"status":1,"successCount":1},"globalTicket":"8874-1703585650.075-saas-w1-732-13882979068","monitorTrackId":"114ab83d-af43-4bd5-b49e-fbc422bab603"}
        return resultStr;
    }

    //查询优惠券详细信息
    public static void getCouponDetail(){
        JSONObject body = new JSONObject();
        body.set("couponTemplateId", 66831671);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_crm/v2.0/coupon/template/detail/get?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"3597-1702700682.879-saas-w1-740-25322175190","code":{"errmsg":"您没有调用该API的权限！","errcode":80001001000126}}
        //{"code":{"bizErrmsg":null,"errcode":"0","errmsg":"处理成功"},"data":{"baseInfo":{"basicTemplateIds":[3889549],"belongVid":6001490628846,"belongVidName":"WE商城","couponDesc":"APP专属","couponSubType":11,"couponTemplateId":66831671,"couponType":3,"merchantName":null,"name":"鸡肉肠兑换券","platformType":1,"subName":"","thirdId":""},"createInfo":{"createAreaCode":null,"createAreaId":null,"createChannel":null,"createTime":"2023-12-14 13:39:02","createType":null,"operatorId":10565311868,"requestChannel":null,"source":"商城"},"otherSetting":{"abstractTitle":null,"canWeimobEdit":true,"explain":"指定商品可用。\n领券后7天内适用。\n单笔订单不允许叠加使用。\n券不可与其他优惠同享。\n","hasMemberTag":false,"imageUrl":null,"isOpenMessage":null,"memberTagIds":[],"messageStockNum":null,"wechatLiveNickName":null,"wechatLiveSyncMsg":null},"reduceRule":{"cashTicketAmt":null,"costOfOrganization":null,"costOfStore":null,"couponCost":100.00,"couponCostType":2,"discount":null,"discountLimitType":null,"discountLimitValue":null,"exchangeGoodsIds":null,"exchangeGoodsNum":null,"exchangeGoodsType":null,"freightReduceType":null,"goodsDiscountThreshold":null,"maxCashTicketAmt":null,"maxDiscountNum":null,"maxReducePrice":null,"minCashTicketAmt":null,"pricingType":2,"reduceDuration":null,"reducePriceDesc":"无门槛兑换部分商品","reducePriceType":0},"sendRule":{"activityPublish":true,"canGift":false,"canReserve":false,"canShare":false,"canStoreLaunch":false,"crowd":{"ruleContent":null,"ruleId":null,"selectedData":null},"customerDirectReceive":true,"customerListPublish":true,"enterpriseAssistant":null,"giftCountLimit":null,"guideLimitNum":0,"hasGiftLimit":false,"hasGuideLimit":false,"hasUserTakeDayLimit":false,"hasUserTakeLimit":true,"isAcceptAllCrowd":true,"isOpenRecommend":false,"isPayment":false,"limitedTimeDelivery":null,"merchantDelivery":null,"merchantIssueChannels":[5],"merchantPublish":true,"recommendEndTime":null,"recommendStartTime":null,"scanByIssue":false,"sendChannels":[1,2,3,5],"sendEndDate":"2038-01-01 00:00:00","sendStartDate":"2023-12-14 13:39:02","sendTimeType":1,"servicePublish":null,"shoppingPublish":null,"storeLimitNum":0,"userTakeDayLimit":null,"userTakeLimit":1,"wechatLiveIssue":null},"setting":{"codeGenerateType":0,"customCodeSetting":null,"stock":3,"stockUnlimited":false,"totalStock":3},"status":1,"useRule":{"acceptGoodsTypeDesc":"部分商品","acceptInfo":{"acceptGoodsInfos":[{"acceptItems":[{"acceptExt":{},"acceptId":123188323797846,"bizVid":null}],"acceptType":2,"channelName":null,"channelShopName":null,"excludeAcceptItems":[],"excludeType":null,"includeStoreGoods":false,"productId":145,"showAcceptItems":null,"showExcludeAcceptItems":null,"sourceId":0}],"goodsProductIds":[145],"noLimitGoods":false,"sourceIds":[]},"acceptStoreTypeDesc":"全部门店","acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodGroupsMap":null,"acceptGoodsIds":[123188323797846],"acceptGoodsIdsMap":null,"acceptGoodsList":null,"acceptGoodsListMap":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"categoryObjectList":null,"categoryObjectListMap":null,"classifyObjectList":null,"classifyObjectListMap":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeGoodsIdsMap":null,"excludeGoodsList":null,"excludeGoodsListMap":null,"excludeSkuInfos":null,"excludeSkuInfosMap":null,"excludeStoreIds":null,"excludeStoreInfoList":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":[145],"skuInfos":null,"skuInfosMap":null,"skuNum":null,"storeInfoList":null,"vidInfoList":null,"vidInfos":null},"addOfflineWhiteList":null,"allSceneDTO":null,"canCashTicket":false,"canGoodsNumber":false,"canUseDiscount":{"canUseWithOtherDiscount":false,"forHereDiscount":null,"shoppingMallDiscount":null,"takeOutDiscount":null,"wineTourDiscount":null},"cycleUnuseRule":null,"cycleUseRule":null,"durationThreshold":null,"goodsCashTicket":null,"hasUnuseTime":false,"hasUseThreshold":false,"importGoodsFileName":null,"importGoodsFlag":null,"isAllTimeUse":true,"isAllUseScene":true,"maxGoodsNumber":null,"minGoodsNumber":null,"orderDeductList":[2,3],"superpositionRule":{"differentSuperposition":false,"differentSuperpositionType":null,"isSuperposition":false,"limit":null,"resourceTemplateIds":null,"sameSuperposition":false},"useValidDate":{"subUseTimeType":2,"useDelayDays":0,"useEndTime":"2038-01-01 00:00:00","useStartTime":"2023-12-14 13:39:02","useTimeType":2,"validDateDesc":"领取后7天内有效","validDays":7}},"wxInfo":{"appUserName":null,"centerScene":null,"centerSceneType":null,"centerSceneUrl":null,"centerSceneUrlName":null,"channelType":null,"colorType":null,"customScene":null,"customSceneSubTitle":null,"customSceneSwitch":false,"customSceneTitle":null,"customSceneUrl":null,"customSceneUrlName":null,"logoImg":null,"merchantName":null,"miniprogAppId":null,"originalId":null,"partnerMode":null,"publicAppId":null,"surfaceImg":null,"surfaceTitle":null,"textImageList":null,"useMethod":null,"userGuide":null}},"globalTicket":"28372-1702862062.387-saas-w1-740-25221714769","monitorTrackId":"fc2962ce-5c7b-48e9-b127-c2379e3a2e79"}
    }

    //搜索优惠券
    public static void searchCoupon(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("pageSize",10);
        body.set("pageNum",1);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_crm/v2.0/coupon/template/search?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"8302-1702700593.714-saas-w1-736-25325266980","code":{"errmsg":"您没有调用该API的权限！","errcode":80001001000126}}
        //{"code":{"bizErrmsg":null,"errcode":"0","errmsg":"处理成功"},"data":{"pageList":[{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":[145],"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"无使用门槛","cashTicketAmt":null,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":100.00,"couponCostType":2,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66831671,"couponType":3,"couponTypeDesc":"兑换券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-14 13:39:02","createType":null,"createTypeName":null,"desc":"APP专属","discount":null,"discountAmount":null,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n领券后7天内适用。\n单笔订单不允许叠加使用。\n券不可与其他优惠同享。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":false,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"鸡肉肠兑换券","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1,2,3,5],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛兑换部分商品","reducePriceType":1,"serviceMchid":null,"share":{"content":"APP专属","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66831671","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66831671"},"title":"鸡肉肠兑换券"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":1,"stock":3,"stockCreatorMchid":null,"stockUnlimited":false,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":3,"updateTime":"2023-12-14 13:39:02","useRule":null,"userReceiveInfo":null,"userTakeLimit":1,"validDate":{"subUseTimeType":2,"useDelayDays":0,"useEndTime":"2038-01-01 00:00:00","useStartTime":"2023-12-14 13:39:02","useTimeType":2,"validDateDesc":"领取后7天内有效","validDays":7},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":[145],"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"无使用门槛","cashTicketAmt":null,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":100.00,"couponCostType":2,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66828676,"couponType":3,"couponTypeDesc":"兑换券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-14 13:37:57","createType":null,"createTypeName":null,"desc":"APP专属","discount":null,"discountAmount":null,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n领券后7天内适用。\n单笔订单不允许叠加使用。\n券不可与其他优惠同享。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":false,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"mini苹果醋兑换券","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1,2,3,5],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛兑换部分商品","reducePriceType":1,"serviceMchid":null,"share":{"content":"APP专属","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66828676","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66828676"},"title":"mini苹果醋兑换券"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":1,"stock":3,"stockCreatorMchid":null,"stockUnlimited":false,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":3,"updateTime":"2023-12-14 13:37:57","useRule":null,"userReceiveInfo":null,"userTakeLimit":1,"validDate":{"subUseTimeType":2,"useDelayDays":0,"useEndTime":"2038-01-01 00:00:00","useStartTime":"2023-12-14 13:37:57","useTimeType":2,"validDateDesc":"领取后7天内有效","validDays":7},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":[145],"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"无使用门槛","cashTicketAmt":null,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":100.00,"couponCostType":2,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66845642,"couponType":3,"couponTypeDesc":"兑换券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-14 13:36:34","createType":null,"createTypeName":null,"desc":"APP专属","discount":null,"discountAmount":null,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n领取后7天内适用。\n单笔订单不允许叠加使用。\n券不可与其他优惠同享。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":false,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"单盒食验室薯片兑换券","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1,2,3,5],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛兑换部分商品","reducePriceType":1,"serviceMchid":null,"share":{"content":"APP专属","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66845642","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66845642"},"title":"单盒食验室薯片兑换券"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":1,"stock":3,"stockCreatorMchid":null,"stockUnlimited":false,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":3,"updateTime":"2023-12-14 13:36:34","useRule":null,"userReceiveInfo":null,"userTakeLimit":1,"validDate":{"subUseTimeType":2,"useDelayDays":0,"useEndTime":"2038-01-01 00:00:00","useStartTime":"2023-12-14 13:36:34","useTimeType":2,"validDateDesc":"领取后7天内有效","validDays":7},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":true,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"满39.90元可用","cashTicketAmt":39.90,"cashTicketCondition":39.90,"codeGenerateType":0,"couponCost":39.90,"couponCostType":1,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66842624,"couponType":1,"couponTypeDesc":"代金券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-13 13:21:09","createType":null,"createTypeName":null,"desc":"双十二大会员兑换活动-合集兑换","discount":null,"discountAmount":39.90,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n领券后7天内可用。\n单笔订单不允许叠加使用。\n券不可与其他优惠同享。\n订单金额满39.9元可使用券。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":39.90,"hasUseThreshold":true,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"39.9元立减金","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1,2,3,5],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"满39.90元减39.90元","reducePriceType":1,"serviceMchid":null,"share":{"content":"双十二大会员兑换活动-合集兑换","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66842624","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66842624"},"title":"39.9元立减金"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":1,"stock":null,"stockCreatorMchid":null,"stockUnlimited":true,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":2147483647,"updateTime":"2023-12-13 13:21:09","useRule":null,"userReceiveInfo":null,"userTakeLimit":null,"validDate":{"subUseTimeType":2,"useDelayDays":0,"useEndTime":"2038-01-01 00:00:00","useStartTime":"2023-12-13 13:21:09","useTimeType":2,"validDateDesc":"领取后7天内有效","validDays":7},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"无使用门槛","cashTicketAmt":15.00,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":15.00,"couponCostType":1,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66831580,"couponType":1,"couponTypeDesc":"代金券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-12 11:49:57","createType":null,"createTypeName":null,"desc":"健萌专享♥首单15元立减金|测试","discount":null,"discountAmount":15.00,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n12.25-12.31可用。\n单笔订单不允许叠加使用。\n券可与其他优惠同享。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":false,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"健萌专享♥首单15元立减金","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1,2,9],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛减15.00元","reducePriceType":1,"serviceMchid":null,"share":{"content":"健萌专享♥首单15元立减金|测试","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66831580","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66831580"},"title":"健萌专享♥首单15元立减金"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":1,"stock":999997,"stockCreatorMchid":null,"stockUnlimited":false,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":999998,"updateTime":"2023-12-12 11:49:57","useRule":null,"userReceiveInfo":null,"userTakeLimit":1,"validDate":{"subUseTimeType":null,"useDelayDays":0,"useEndTime":"2023-12-31 23:59:00","useStartTime":"2023-12-12 00:00:00","useTimeType":1,"validDateDesc":"2023.12.12 00:00-2023.12.31 23:59","validDays":0},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"无使用门槛","cashTicketAmt":15.00,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":15.00,"couponCostType":1,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66834547,"couponType":1,"couponTypeDesc":"代金券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-12 11:07:07","createType":null,"createTypeName":null,"desc":"健萌专享♥首单15元立减金|测试","discount":null,"discountAmount":15.00,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n12.25-12.31可用。\n单笔订单不允许叠加使用。\n券可与其他优惠同享。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":false,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":null,"maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"健萌专享♥首单15元立减金","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1,2,9],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛减15.00元","reducePriceType":1,"serviceMchid":null,"share":{"content":"健萌专享♥首单15元立减金|测试","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66834547","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66834547"},"title":"健萌专享♥首单15元立减金"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":1,"stock":999998,"stockCreatorMchid":null,"stockUnlimited":false,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":999999,"updateTime":"2023-12-12 11:44:09","useRule":null,"userReceiveInfo":null,"userTakeLimit":1,"validDate":{"subUseTimeType":null,"useDelayDays":0,"useEndTime":"2023-12-31 23:59:00","useStartTime":"2023-12-25 00:00:00","useTimeType":1,"validDateDesc":"2023.12.25 00:00-2023.12.31 23:59","validDays":0},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"全部商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":1,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"无使用门槛","cashTicketAmt":0.10,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":0.10,"couponCostType":1,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66823466,"couponType":1,"couponTypeDesc":"代金券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-08 14:31:26","createType":null,"createTypeName":null,"desc":"","discount":null,"discountAmount":0.10,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"全部商品可用。\n所有时间可用。\n单笔订单不允许叠加使用。\n券不可与其他优惠同享。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":false,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"商城测试0.1","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛减0.10元","reducePriceType":1,"serviceMchid":null,"share":{"content":"","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66823466","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66823466"},"title":"商城测试0.1"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":3,"stock":1,"stockCreatorMchid":null,"stockUnlimited":false,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":2,"updateTime":"2023-12-08 14:32:37","useRule":null,"userReceiveInfo":null,"userTakeLimit":null,"validDate":{"subUseTimeType":null,"useDelayDays":0,"useEndTime":"2023-12-10 14:31:00","useStartTime":"2023-12-09 14:31:00","useTimeType":1,"validDateDesc":"2023.12.09 14:31-2023.12.10 14:31","validDays":0},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":true,"canStoreLaunch":false,"cashConditionStr":"满1件可用","cashTicketAmt":0.10,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":0.10,"couponCostType":1,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66825426,"couponType":1,"couponTypeDesc":"代金券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-07 17:17:37","createType":null,"createTypeName":null,"desc":"","discount":null,"discountAmount":0.10,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n所有时间可用。\n单笔订单允许叠加5张券使用。\n券不可与其他优惠同享。\n下单商品件数满1件后可使用。","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":true,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":null,"maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":1,"name":"商城测试0.1","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛减0.10元","reducePriceType":1,"serviceMchid":null,"share":{"content":"","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66825426","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66825426"},"title":"商城测试0.1"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":3,"stock":1000,"stockCreatorMchid":null,"stockUnlimited":false,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":1000,"updateTime":"2023-12-08 14:32:42","useRule":null,"userReceiveInfo":null,"userTakeLimit":1,"validDate":{"subUseTimeType":null,"useDelayDays":0,"useEndTime":"2023-12-08 17:16:00","useStartTime":"2023-12-07 17:16:00","useTimeType":1,"validDateDesc":"2023.12.07 17:16-2023.12.08 17:16","validDays":0},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":2,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":null,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":[145],"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"无使用门槛","cashTicketAmt":null,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":100.00,"couponCostType":2,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66790818,"couponType":3,"couponTypeDesc":"兑换券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-06 09:44:41","createType":null,"createTypeName":null,"desc":"fit8ceshi ","discount":null,"discountAmount":null,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n所有时间可用。\n单笔订单不允许叠加使用。\n券可与其他优惠同享。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":false,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":null,"maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"六婆辣椒面","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[3,1,2,5,4],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛兑换部分商品","reducePriceType":1,"serviceMchid":null,"share":{"content":"fit8ceshi ","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66790818","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66790818"},"title":"六婆辣椒面"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":2,"stock":0,"stockCreatorMchid":null,"stockUnlimited":false,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":2,"updateTime":"2023-12-09 10:00:04","useRule":null,"userReceiveInfo":null,"userTakeLimit":null,"validDate":{"subUseTimeType":null,"useDelayDays":0,"useEndTime":"2023-12-09 09:43:00","useStartTime":"2023-12-06 09:43:00","useTimeType":1,"validDateDesc":"2023.12.06 09:43-2023.12.09 09:43","validDays":0},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null},{"acceptGoodsTypeDesc":"部分商品适用","acceptStoreTypeDesc":null,"acceptTypeDTO":{"acceptGoodGroups":null,"acceptGoodsIds":null,"acceptGoodsType":4,"acceptObjects":null,"acceptStoreIds":null,"acceptStoreType":1,"basicInfo":null,"belongVid":6001490628846,"bosId":null,"excludeAcceptObjects":null,"excludeGoodsIds":null,"excludeSkuInfos":null,"excludeStoreIds":null,"existExcludeGoods":true,"existExcludeStore":false,"goodsNum":null,"includeStoreGoods":false,"produceId":145,"productIds":null,"skuInfos":null,"skuNum":null,"vidInfos":null},"bosId":4002554743846,"canCashTicket":false,"canGiveFriend":null,"canGoodsNumber":false,"canStoreLaunch":false,"cashConditionStr":"无使用门槛","cashTicketAmt":5.00,"cashTicketCondition":null,"codeGenerateType":0,"couponCost":5.00,"couponCostType":1,"couponExtDTO":null,"couponScopeList":null,"couponTemplateId":66792784,"couponType":1,"couponTypeDesc":"代金券","createAreaCode":null,"createStoreId":null,"createTime":"2023-12-05 17:21:07","createType":null,"createTypeName":null,"desc":"双12下单返券活动","discount":null,"discountAmount":5.00,"discountLimitType":null,"discountLimitValue":null,"durationThreshold":null,"explain":"指定商品可用。\n指定时间适用。\n单笔订单不允许叠加使用。\n券不可与其他优惠同享。\n","freightReduceType":null,"goodsAdapterUrl":null,"goodsCashTicket":null,"hasUseThreshold":false,"imageUrl":null,"isEnable":null,"isExternalCoupon":null,"isInPackage":null,"isPayment":false,"logo":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","maxCashTicketAmt":null,"maxGoodsNumber":null,"merchantId":2000062278846,"minCashTicketAmt":null,"minGoodsNumber":null,"name":"5元无门槛","pid":0,"platformType":1,"preferentialWay":1,"publishChannels":[1,2,3,5],"publishCount":null,"recommendEndTime":null,"recommendStartTime":null,"redirectType":null,"reduceDuration":null,"reducePriceDesc":"无门槛减5.00元","reducePriceType":1,"serviceMchid":null,"share":{"content":"双12下单返券活动","imageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e63f298084324105b2d67aab81b5b67a.png","shareUrl":{"h5Url":"https://187447846.crm.n.weimob.com/bos/onecrm/187447846/0/2583529846/coupons/coupon-detail?id=66792784","miniUrl":"/onecrm/coupon-detail?productInstanceId=2583529846&vid=0&id=66792784"},"title":"5元无门槛"},"shareImageUrl":null,"sourceMerchantName":null,"sourceProdInstanceId":2583529846,"sourceProductId":146,"sourceProductVersionId":10003,"status":2,"stock":null,"stockCreatorMchid":null,"stockUnlimited":true,"storeAdapterUrl":null,"subName":"","tcode":"weimob","thirdTemplateId":"","totalStock":2147483647,"updateTime":"2023-12-13 00:00:04","useRule":null,"userReceiveInfo":null,"userTakeLimit":1,"validDate":{"subUseTimeType":null,"useDelayDays":0,"useEndTime":"2023-12-12 23:59:00","useStartTime":"2023-12-06 00:00:00","useTimeType":1,"validDateDesc":"2023.12.06 00:00-2023.12.12 23:59","validDays":0},"vid":6001490628846,"vidType":2,"vids":[6001490628846],"wechatLiveNickName":null,"wechatLiveSyncMsg":null}],"pageNum":1,"pageSize":10,"totalCount":1118},"globalTicket":"3600-1702861930.267-saas-w1-736-25462226711","monitorTrackId":"419b342e-01eb-4942-8f1f-f790870554ca","pageNum":1,"pageSize":10,"totalCount":1118}
    }

    //指定条件获取sku信息
    public static void searchSku(){
        JSONObject body = new JSONObject();
        body.set("basicInfo","{\"vid\":6001490628846}");
        body.set("goodsIdList", new String[]{"123211477797846"});

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_shop/v2.0/goods/sku/search?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"3601-1702631691.343-saas-w1-731-25257586560","code":{"errcode":80001001000126,"errmsg":"您没有调用该API的权限！"}}
        //{"code":{"errcode":"1001030100011","errmsg":"规格编码和规格条码必选一个","globalTicket":"394-1702861852.055-saas-w1-731-25150124358","monitorTrackId":"4ce14b50-4845-4401-86f8-b828aeb0020b"},"data":null}

    }

    //获取商品分享链接
    public static void getGoodsUrl(){
        JSONObject body = new JSONObject();
        body.set("basicInfo","{\"vid\":6001490628846}");
        body.set("goodsIdList", new String[]{"123157481797846"});
        body.set("isQueryScene",true);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_shop/v2.0/goods/url/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"处理成功","globalTicket":"3599-1702629796.614-saas-w1-732-25256003536","monitorTrackId":"e5c32b98-32d2-4d47-81fc-e37d93b2c272"},"data":{"goodsUrlOutputList":[{"h5Url":"https://187447846.shop.n.weimob.com/bos/shop/187447846/6001490628846/2583540846/goods/detail/index?id=123211477797846","goodsId":123211477797846,"miniUrl":"/ec_goods/detail?productInstanceId=2583540846&vid=6001490628846&id=123211477797846","scene":null}]}}
    }

    //根据商品ID列表查询商品信息:https://doc.weimobcloud.com/detail?menuId=19&childMenuId=1&tag=2396&id=3143&isold=2
    public static void getGoodsDec(){
        JSONObject body = new JSONObject();
        body.set("basicInfo","{\"vid\":6001490628846}");
        body.set("goodsIdList", new String[]{"125964495797846"});

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_shop/v2.0/goods/getListById?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"处理成功","globalTicket":"28370-1702616579.051-saas-w1-732-25004934295","monitorTrackId":"cfc2d3a2-c965-4806-b620-8bf5d36c13b7"},"data":[{"isMultiSku":true,"soldType":1,"goodsId":123211477797846,"isOnline":true,"outerGoodsCode":null,"title":"【全麦制作.进口可可】多乐星球醇可可黑巧全麦欧包","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/f4fbf7e9b0fc45408fd9b3a89062cccd.jpg","goodsStock":{"goodsStockNum":6000},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"300g/只","goodsPrice":{"minSalePrice":41.9000,"maxSalePrice":81.9000},"payGoodsNum":0,"createVid":6001490628846}]}
    }
    //根据商品ID列表查询商品信息:https://doc.weimobcloud.com/detail?menuId=19&childMenuId=1&tag=190&id=364&isold=1
    public static void queryGoodsDetail(){
        JSONObject body = new JSONObject();
        body.set("goodsId",125964495797846L);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/api/1_0/ec/goods/queryGoodsDetail?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"c64e2ea9-3a05-4bfd-92f4-d76c4f9fd261","code":{"errcode":"0","errmsg":"处理成功","globalTicket":"c64e2ea9-3a05-4bfd-92f4-d76c4f9fd261","monitorTrackId":"765a9114-28c2-40f8-9fa5-85341bcb9ed6"},"contrastResult":null,"data":{"goods":{"isMultiSku":1,"selectedClassifyList":[{"classifyId":13284077797846,"childrenClassify":[{"classifyId":13283928797846,"childrenClassify":null,"title":"周三会员日专属"}],"title":"周三会员日专属"}],"skuList":[{"singleProduct":{"singleProductTitle":"【周三会员日】美味尝鲜装 AKOKO经典三味曲奇饼干","unit":null,"isDeleted":false,"singleProductId":198037074797846,"num":1,"warehouseStockList":null,"costPrice":null,"singleProductCode":"K000010102454408","unitId":null,"singleProductImageUrlList":null,"defaultImageUrl":null,"productAttribute":null},"b2cSku":{"volume":0.000000,"weight":0.000},"originalPrice":80.0000,"salePrice":67.9000,"goodsId":125964495797846,"adviseSalePriceMin":null,"costPrice":37.0000,"outerSkuCode":"经典三味68g*5袋(原味+抹茶+咖啡)","availableStockNum":1923,"skuAttrMap":{"125237247155":{"attrId":125237247155,"name":"规格","value":"【分享装】经典三味68g*5袋(原味+抹茶+咖啡)","key":26601308797846}},"productTitle":"【周三会员日】美味尝鲜装 AKOKO经典三味曲奇饼干","skuAttrKey":"26601308797846","productCode":"K000010102454408","adviseSalePriceMax":null,"isDeleted":false,"imageUrl":null,"combineProduct":null,"skuId":209454033797846,"productType":1}],"selectedGoodsAttrInfoList":[],"selectedSaleAttrInfoList":[{"attributeId":125237247155,"name":"规格","attrValueList":[{"isCustomDefined":null,"attrImgUrl":null,"value":"【分享装】经典三味68g*5袋(原味+抹茶+咖啡)","key":26601308797846}]}],"selectedSaleAttrList":{"125237247155":[26601308797846]},"goodsId":125964495797846,"isPutAway":1,"selectedGoodsPropInfoList":[],"goodsLimitVo":null,"title":"【周三会员日】美味尝鲜装 AKOKO经典三味曲奇饼干","initialSales":111,"isCanSell":1,"goodsVideoImageUrl":null,"sellModelType":1,"isDeleted":false,"goodsCertificateUrl":null,"categoryList":[{"title":"食品","categoryId":1},{"title":"烘焙/甜品","categoryId":232}],"selectedTag":null,"brand":null,"goodsDesc":"<p style=\"line-height: normal; margin: 0px 0px 8px; font-size: 14px; font-weight: normal; color: rgb(33, 33, 33);\"><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/9cbcfb1050f141bf834d5d1616eb9328.jpg\" alt=\"20210312_101747_001.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/a5284bc677fd4151851cd8b4fcaf7e32.jpg\" alt=\"20210312_101747_002.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/096bcae5a9c84f0c892a90d3cd22e18d.jpg\" alt=\"20210312_101747_004.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/da590441b4c041c393b298037a9c2dc2.jpg\" alt=\"20210312_101747_007.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/8de70949a8ed4b68af5f5d214e7d01c3.jpg\" alt=\"20210312_101747_009.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/09eee6c3579048cf8467b5947fa93d2f.jpg\" alt=\"20210312_101747_010.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/c626a449aa3a4601b5f025f03d24010b.jpg\" alt=\"20210312_101747_011.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/e22beb798bf8449b9fa66ce0c9abb663.jpg\" alt=\"20210312_101747_012.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/6d9ed9dcaaca460d96fff4640eb957e4.jpg\" alt=\"20210312_101747_013.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/a2ce05fc503745628ecd66f159c0c357.jpg\" alt=\"20210312_101747_014.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/c95a602a354e41d9bf373fd8edc58efe.jpg\" alt=\"20210312_101747_015.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/8d64dd61a1e147569e0402f4cc16b44d.jpg\" alt=\"20210312_101747_016.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/d7f60ce386ba49f5bc16cd4a7b0e9a49.jpg\" alt=\"20210312_101747_017.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/c1202de32fc04d97aaa8bea730adbd69.jpg\" alt=\"20210312_101747_018.jpg\" style=\"\" /><img src=\"https://image-c.weimobwmc.com/ol-6NoGC/1bae701772fc445fa897599acc1a4315.jpg\" alt=\"20210312_101747_019.jpg\" style=\"\" /></p>","goodsSlogan":"68g*5包","skuMap":{"26601308797846":{"singleProduct":{"singleProductTitle":"【周三会员日】美味尝鲜装 AKOKO经典三味曲奇饼干","unit":null,"isDeleted":false,"singleProductId":198037074797846,"num":1,"warehouseStockList":null,"costPrice":null,"singleProductCode":"K000010102454408","unitId":null,"singleProductImageUrlList":null,"defaultImageUrl":null,"productAttribute":null},"b2cSku":{"volume":0.000000,"weight":0.000},"originalPrice":80.0000,"salePrice":67.9000,"goodsId":125964495797846,"adviseSalePriceMin":null,"costPrice":37.0000,"outerSkuCode":"经典三味68g*5袋(原味+抹茶+咖啡)","availableStockNum":1923,"skuAttrMap":{"125237247155":{"attrId":125237247155,"name":"规格","value":"【分享装】经典三味68g*5袋(原味+抹茶+咖啡)","key":26601308797846}},"productTitle":"【周三会员日】美味尝鲜装 AKOKO经典三味曲奇饼干","skuAttrKey":"26601308797846","productCode":"K000010102454408","adviseSalePriceMax":null,"isDeleted":false,"imageUrl":null,"combineProduct":null,"skuId":209454033797846,"productType":1}},"outerGoodsCode":null,"selectedGoodsRightsInfoList":[],"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/e000334804de494297e7bdb996c952e5.png","saleChannelType":1,"goodsBizType":1,"deleted":false,"b2cGoods":{"b2cGoodsType":0},"deductStockType":1,"goodsImageUrl":["https://image-c.weimobwmc.com/ol-6NoGC/e000334804de494297e7bdb996c952e5.png","https://image-c.weimobwmc.com/ol-6NoGC/9ceafdfff6ce472b8324c8e22709c595.jpg","https://image-c.weimobwmc.com/ol-6NoGC/4ed9adc398dc4adda1adc37cb8c5db6f.jpg","https://image-c.weimobwmc.com/ol-6NoGC/b4056e8b535a401dacd12f23340d8664.jpg","https://image-c.weimobwmc.com/ol-6NoGC/b92bfead93dd4009871313f8d876e332.jpg","https://image-c.weimobwmc.com/ol-6NoGC/8ff1c874575541ebb97be406258e81c9.jpg"],"goodsVideoUrl":null,"selectedInnerGoodsPropInfoList":[]}}}
    }
    //查询商品列表
    public static void getGoodsList(){
        JSONObject body = new JSONObject();
        body.set("basicInfo","{\"vid\":6001490628846}");
        body.set("pageSize",10);
        body.set("pageNum",1);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_shop/v2.0/goods/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"处理成功","globalTicket":"3598-1702616398.289-saas-w1-728-25244963206","monitorTrackId":"65bcdb7d-1686-47fe-b7f6-e8ce63d9fe4c"},"data":{"pageSize":10,"pageList":[{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123211477797846,"isOnline":true,"realSaleNum":0,"sort":0,"outerGoodsCode":null,"title":"【全麦制作.进口可可】多乐星球醇可可黑巧全麦欧包","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/f4fbf7e9b0fc45408fd9b3a89062cccd.jpg","goodsStock":{"goodsStockNum":6000},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"300g/只","goodsPrice":{"minSalePrice":41.9000,"maxSalePrice":81.9000},"onlineTime":1702612789446,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123199408797846,"isOnline":true,"realSaleNum":0,"sort":0,"outerGoodsCode":null,"title":"【减脂营学员专属双旦礼包】新年快乐减脂零食包","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/eb89c568a519494d882a898455772aa6.png","goodsStock":{"goodsStockNum":3000},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"新年快乐减脂零食包","goodsPrice":{"minSalePrice":99.0000,"maxSalePrice":99.0000},"onlineTime":1702545723536,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123197981797846,"isOnline":true,"realSaleNum":1,"sort":0,"outerGoodsCode":null,"title":"【21天打卡群】畅忆元气红豆蛋白饮","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/31b35749c7e84eb4926229158e2ee14e.png","goodsStock":{"goodsStockNum":5983},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"25g*7袋/盒","goodsPrice":{"minSalePrice":50.9000,"maxSalePrice":101.9000},"onlineTime":1702544288108,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123195785797846,"isOnline":true,"realSaleNum":0,"sort":0,"outerGoodsCode":null,"title":"测试 NMN透明质酸Q10五合一素食硬胶囊 60粒","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/164490b177974e28b43c30d69c0c9b4e.jpg","goodsStock":{"goodsStockNum":1000},"goodsType":1,"vid":6001490628846,"subGoodsType":102,"subTitle":"60粒/瓶","goodsPrice":{"minSalePrice":1299.0000,"maxSalePrice":1299.0000},"onlineTime":1702542181418,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123194581797846,"isOnline":true,"realSaleNum":1,"sort":0,"outerGoodsCode":"101110110006689333","title":"测试链接Orthomol奥适宝优乐舒30片剂","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/4703da5d493a4408bee2e52243ed3055.jpg","goodsStock":{"goodsStockNum":999},"goodsType":1,"vid":6001490628846,"subGoodsType":102,"subTitle":"测试","goodsPrice":{"minSalePrice":478.0000,"maxSalePrice":478.0000},"onlineTime":1702539998903,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123187996797846,"isOnline":true,"realSaleNum":0,"sort":0,"outerGoodsCode":"","title":"【APP专属兑换链接】We计划苹果醋粉5条装","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/a8488daec0bc452f85b7c5006b564775.jpg","goodsStock":{"goodsStockNum":3},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"苹果冻干粉 5*4g/条","goodsPrice":{"minSalePrice":19.9000,"maxSalePrice":19.9000},"onlineTime":1702531902935,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123188325797846,"isOnline":true,"realSaleNum":0,"sort":0,"outerGoodsCode":"","title":"APP专属兑换链接【解馋零嘴·厚厚奶酪味】食验室厚厚奶酪玉米片","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/27aca32410ea4b43b27813cad2a4d458.jpg","goodsStock":{"goodsStockNum":3},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"食验室40g/盒","goodsPrice":{"minSalePrice":18.9000,"maxSalePrice":18.9000},"onlineTime":1702531829126,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123188323797846,"isOnline":true,"realSaleNum":0,"sort":0,"outerGoodsCode":"","title":"APP专属兑换链接【0淀粉·低脂轻卡】袋鼠先生低脂即食鸡肉肠","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/saas-wxbiz/e1625f16a444455cb2488031bbf925fa.png","goodsStock":{"goodsStockNum":3},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"袋鼠先生25g/根","goodsPrice":{"minSalePrice":25.9000,"maxSalePrice":25.9000},"onlineTime":1702531713510,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123178761797846,"isOnline":true,"realSaleNum":0,"sort":0,"outerGoodsCode":null,"title":"测试 |【黑科技蛋白棒·饱腹易吸收】ffit8代餐蛋白棒","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/cd33dd9ff1a84fa0b96702468357b5e8.jpg","goodsStock":{"goodsStockNum":4983},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"测试勿下单，下单不发货！！！！","goodsPrice":{"minSalePrice":89.0000,"maxSalePrice":89.0000},"onlineTime":1702475223627,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null},{"isMultiSku":true,"soldType":1,"isEpidemicGoods":0,"goodsId":123174887797846,"isOnline":true,"realSaleNum":0,"sort":0,"outerGoodsCode":null,"title":"【冬季保暖神器】安牧长筒麻花羊毛中筒袜中筒绵羊毛竖条纹袜","isCanSell":true,"defaultImageUrl":"https://image-c.weimobwmc.com/ol-6NoGC/d92676abe5114a9791a7d985141f55cd.jpg","goodsStock":{"goodsStockNum":9000},"goodsType":1,"vid":6001490628846,"subGoodsType":101,"subTitle":"6双/颜色随机混搭","goodsPrice":{"minSalePrice":53.9000,"maxSalePrice":53.9000},"onlineTime":1702461559155,"drugGoodsType":null,"createVid":6001490628846,"drugParam":null}],"totalCount":1615,"pageNum":1}}
    }



    //批量获取微客业绩信息
    public static void getPerformanceList(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("weikeWidList",new String[]{"10540470086","10898133920"});


        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/reward/performance/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"performanceList":[{"wid":10540470086,"receivableAmount":607.32,"bindCustomerNum":3,"inviteWeikeNum":1,"inviteMemberNum":1,"payOrderNum":7,"payAmount":607.32,"confirmOrderNum":5,"confirmAmount":0.00,"rightAmount":342.32,"rightOrderNum":5},{"wid":10898133920,"receivableAmount":0,"bindCustomerNum":1,"inviteWeikeNum":0,"inviteMemberNum":0,"payOrderNum":0,"payAmount":0,"confirmOrderNum":0,"confirmAmount":0,"rightAmount":0,"rightOrderNum":0}]},"globalTicket":"28375-1702535218.929-saas-w1-749-24941550797","monitorTrackId":"e2da63de-5f9b-45d8-99f3-71f3b46c7aaa"}
    }
    public static void batchCalculate(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("wid","10540470086");

        List goodsList = new ArrayList();
        JSONObject goods = new JSONObject();
        goods.set("createVid","6001490628846");
        List skuList = new ArrayList();
        JSONObject sku = new JSONObject();
        sku.set("skuId","142415412342");
        skuList.add(sku);
        goods.set("skuList",skuList);
        goods.set("goodsId","412321412312");
        goodsList.add(goods);
        body.set("goodsList",goodsList);


        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/reward/commission/batchCalculate?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);

        //{"code":{"errcode":"0","errmsg":"success"},"data":{"goodsCommissionList":[]},"globalTicket":"396-1702536169.159-saas-w1-756-24872195654","monitorTrackId":"9c0d11ba-7957-4485-8463-d796bd63e384"}

    }
    //获取邀请人的邀请微客列表
    public static void inviterDistributorList(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("weikeWid",10540470086L);
        body.set("pageSize",10);
        body.set("pageNum",1);


        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/inviter/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"pageNum":1,"pageSize":10,"totalCount":1,"responseVOList":[{"wid":10898133920,"weikeWid":10898133920,"status":1,"levelId":100155100,"inviterId":10540470086,"applyTime":"2023-12-14 11:09:17","phone":"18867363985","nickname":null,"headUrl":null,"levelName":"外部KOC","inviterPhone":"15111363731","inviterName":"芝麻沉","weikeDetailUrl":null,"customFieldList":null}]},"globalTicket":"28369-1702535028.874-saas-w1-750-24941395166","monitorTrackId":"d2b120b1-31fe-4d86-a443-de848d874962"}
    }

    //批量获取微客带参链接
    public static void processUrl(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("vidType",10);

        List<String> originUrlList = new ArrayList<>();
        originUrlList.add("http://www.weimob.com/img/asdfsdf");
        body.set("originUrlList",originUrlList);

        Map tileParamMap = new HashMap();
        tileParamMap.put("dia","dia");
        body.set("tileParamMap",tileParamMap);
        body.set("weikeWid","10898133920");

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/process/url/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"sdpUrlList":["http://www.weimob.com/img/asdfsdf?sdpTicket=1_11_ohqf54&weikeId=10898133920"],"shopUrl":null,"inviteWeikeUrl":null,"inviteMemberUrl":null},"globalTicket":"28369-1702534389.185-saas-w1-743-24940875103","monitorTrackId":"eaa6da84-aa3e-493a-9d64-de96e66e0b1d"}
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"sdpUrlList":["http://www.weimob.com/img/asdfsdf?sdpTicket=1_11_ohqf54&weikeId=10898133920&dia=dia"],"shopUrl":null,"inviteWeikeUrl":null,"inviteMemberUrl":null},"globalTicket":"28372-1702534590.817-saas-w1-743-24941039709","monitorTrackId":"e798b7a8-5ed4-4b0e-829a-25aba09b6244"}
    }

    //查询分销订单
    public static void getRewardOrderList(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("vidType",10);
        body.set("pageSize",10);
        body.set("pageNum",1);
        body.set("customerWid",10540470086L);

       body.set("startTime","2023-12-07 10:00:00");
        body.set("endTime","2023-12-29 15:00:00");

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/reward/order/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"pageNum":1,"pageSize":10,"totalCount":9,"orderRewardList":[{"weikePhone":"13574417420","weikeNickname":"噼里啪啦","customerWid":10828906662,"customerNickname":"","inviterPhone":"13574417420","inviterNickname":"噼里啪啦","openInviterSplit":0,"splitBillType":0,"weikeWid":10521346223,"inviterWid":10521346223,"tradeTime":"2023-12-14 13:24:34","payTime":"2023-12-14 13:24:34","tradeId":884594386001361,"parentTradeId":884594386001361,"tradeType":1,"tradeAmount":19.9,"splitAmount":19.9,"rewardType":1,"weikeAmount":0.0,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":19.9,"actualPaymentAmount":19.9,"orderPaymentAmount":19.9,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 13:24:35","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":0.0},{"weikePhone":"15850288090","weikeNickname":"༺๑Bana๑༻","customerWid":2616372030,"customerNickname":"༺๑Bana๑༻","inviterPhone":"15850288090","inviterNickname":"༺๑Bana๑༻","openInviterSplit":0,"splitBillType":0,"weikeWid":2616372030,"inviterWid":2616372030,"tradeTime":"2023-12-14 11:31:48","payTime":"2023-12-14 11:31:48","tradeId":884492702001721,"parentTradeId":884492702001721,"tradeType":1,"tradeAmount":52.0,"splitAmount":52.0,"rewardType":1,"weikeAmount":1.56,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":52.0,"actualPaymentAmount":52.0,"orderPaymentAmount":52.0,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 11:31:49","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":1.56},{"weikePhone":"13903025661","weikeNickname":"雯儿~","customerWid":2827946031,"customerNickname":"雯儿~","inviterPhone":"13903025661","inviterNickname":"雯儿~","openInviterSplit":0,"splitBillType":0,"weikeWid":2827946031,"inviterWid":2827946031,"tradeTime":"2023-12-14 11:28:34","payTime":"2023-12-14 11:28:34","tradeId":884490234001435,"parentTradeId":884490234001435,"tradeType":1,"tradeAmount":8.97,"splitAmount":8.97,"rewardType":1,"weikeAmount":0.0,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":8.97,"actualPaymentAmount":8.97,"orderPaymentAmount":8.97,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 11:28:35","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":0.0},{"weikePhone":"13818660605","weikeNickname":"不瘦20斤不改名","customerWid":10165709606,"customerNickname":"不瘦20斤不改名","inviterPhone":"13818660605","inviterNickname":"不瘦20斤不改名","openInviterSplit":0,"splitBillType":0,"weikeWid":10165709606,"inviterWid":10165709606,"tradeTime":"2023-12-14 11:06:28","payTime":"2023-12-14 11:06:28","tradeId":884473878001578,"parentTradeId":884473878001578,"tradeType":1,"tradeAmount":83.61,"splitAmount":83.61,"rewardType":1,"weikeAmount":0.0,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":83.61,"actualPaymentAmount":83.61,"orderPaymentAmount":83.61,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 11:06:29","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":0.0},{"weikePhone":"13736233599","weikeNickname":"昆特牌提琴烤蛋挞苏打马拉松","customerWid":10129808460,"customerNickname":"3-yoyo","inviterPhone":"13736233599","inviterNickname":"昆特牌提琴烤蛋挞苏打马拉松","openInviterSplit":0,"splitBillType":0,"weikeWid":2677411731,"inviterWid":2677411731,"tradeTime":"2023-12-14 11:05:13","payTime":"2023-12-14 11:05:13","tradeId":884472863001973,"parentTradeId":884472863001973,"tradeType":1,"tradeAmount":21.0,"splitAmount":21.0,"rewardType":1,"weikeAmount":0.63,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":21.0,"actualPaymentAmount":21.0,"orderPaymentAmount":21.0,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 11:05:14","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":0.63},{"weikePhone":"13815074560","weikeNickname":"兔兔","customerWid":10384225411,"customerNickname":"°Do vis","inviterPhone":"13815074560","inviterNickname":"兔兔","openInviterSplit":0,"splitBillType":0,"weikeWid":2896085797,"inviterWid":2896085797,"tradeTime":"2023-12-14 10:58:09","payTime":"2023-12-14 10:58:09","tradeId":884468107001285,"parentTradeId":884468107001285,"tradeType":1,"tradeAmount":44.9,"splitAmount":44.9,"rewardType":1,"weikeAmount":0.0,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":44.9,"actualPaymentAmount":44.9,"orderPaymentAmount":44.9,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 10:58:10","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":0.0},{"weikePhone":"15243800780","weikeNickname":"早点睡觉ok","customerWid":2978223343,"customerNickname":"早点睡觉ok","inviterPhone":"15243800780","inviterNickname":"早点睡觉ok","openInviterSplit":0,"splitBillType":0,"weikeWid":2978223343,"inviterWid":2978223343,"tradeTime":"2023-12-14 10:46:42","payTime":"2023-12-14 10:46:42","tradeId":884458765001895,"parentTradeId":884458765001895,"tradeType":1,"tradeAmount":0.0,"splitAmount":0.0,"rewardType":1,"weikeAmount":0.0,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":0.0,"actualPaymentAmount":0.0,"orderPaymentAmount":0.0,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 10:46:44","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":0.0},{"weikePhone":"15243800780","weikeNickname":"早点睡觉ok","customerWid":2978223343,"customerNickname":"早点睡觉ok","inviterPhone":"15243800780","inviterNickname":"早点睡觉ok","openInviterSplit":0,"splitBillType":0,"weikeWid":2978223343,"inviterWid":2978223343,"tradeTime":"2023-12-14 10:45:40","payTime":"2023-12-14 10:45:40","tradeId":884457293001380,"parentTradeId":884457293001380,"tradeType":1,"tradeAmount":0.0,"splitAmount":0.0,"rewardType":1,"weikeAmount":0.0,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":0.0,"actualPaymentAmount":0.0,"orderPaymentAmount":0.0,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 10:45:42","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":0.0},{"weikePhone":"17707746373","weikeNickname":"钟小妞的甜甜圈儿《努力赚钱版》","customerWid":3078914295,"customerNickname":"健康","inviterPhone":"17707746373","inviterNickname":"钟小妞的甜甜圈儿《努力赚钱版》","openInviterSplit":0,"splitBillType":0,"weikeWid":2850662424,"inviterWid":2850662424,"tradeTime":"2023-12-14 10:20:17","payTime":"2023-12-14 10:20:17","tradeId":884439253001531,"parentTradeId":884439253001531,"tradeType":1,"tradeAmount":19.9,"splitAmount":19.9,"rewardType":1,"weikeAmount":0.6,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"shouldPaymentAmount":19.9,"actualPaymentAmount":19.9,"orderPaymentAmount":19.9,"inviterAmount":0.0,"tradeRewardStatus":1,"tradeUpdateTime":"2023-12-14 10:20:18","rightsReturnAmount":0,"rightsReturnBalance":0,"rightsReturnPoint":0,"rightsReturnCard":0,"rightsReturnTotal":0,"hasRightsOrder":0,"storeName":"WE商城","rewardProcessType":1,"weikeAndInviterSumAmount":0.6}]},"globalTicket":"8303-1702532699.749-saas-w1-744-25182674811","monitorTrackId":"5c9ebf73-b747-480a-a988-13cf8e91fe57"}
    }
    //查询订单奖励详情
    public static void getRewardOrder(Long orderId){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        //body.set("vidType",10);
        body.set("parentTradeId",orderId);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/reward/order/get?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"weiKeWid":10521346223,"weikeWid":10521346223,"weiKePhone":"13574417420","weikePhone":"13574417420","weiKeNick":"噼里啪啦","weikeNickname":"噼里啪啦","customerWid":10828906662,"customerNick":null,"customerNickname":null,"inviterWid":10521346223,"inviterPhone":"13574417420","inviterNick":"噼里啪啦","inviterNickname":"噼里啪啦","openInviterSplit":0,"splitBillType":0,"splitList":[{"tradeId":884594386001361,"paymentType":1,"tradeTime":"2023-12-14 13:24:34","tradeType":1,"actualPaymentAmount":19.90,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"rewardType":1,"weiKeAmount":0.00,"weikeAmount":0.00,"inviterRewardAmount":0.00,"tradeRewardStatus":1,"total":false},{"tradeId":884594386001361,"paymentType":null,"tradeTime":null,"tradeType":null,"actualPaymentAmount":19.90,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"rewardType":1,"weiKeAmount":0.00,"weikeAmount":0.00,"inviterRewardAmount":0.00,"tradeRewardStatus":1,"total":true}],"orderReward":{"tradeId":884594386001361,"paymentType":1,"tradeTime":"2023-12-14 13:24:34","actualPaymentAmount":19.90,"balanceDiscountAmount":0,"pointDiscountAmount":0,"cardDiscountAmount":0,"rewardType":1,"weikeAmount":0.00,"inviterRewardAmount":0.00,"tradeRewardStatus":1,"goodsList":[{"goodsId":122624987797846,"goodsName":"【19.9任选5件】独角兽韩式荞麦火鸡面","skuId":169992781797846,"skuNum":5.0000,"price":39.90,"subTotal":199.500000,"discountAmount":179.60,"receivableAmount":19.90,"memberPointsDiscountAmount":0,"cardDiscountAmount":0,"balanceDiscountAmount":0,"reduceAmount":0,"actualAmount":19.90,"weikeRewardPercentage":0.00000,"weikeRewardAmount":0.00,"inviterRewardPercentage":0.00000,"inviterRewardAmount":0.00,"isBelowCost":1}],"goodsTotal":{"totalSubtotal":199.500000,"totalDiscountAmount":179.60,"totalReceivableAmount":19.90,"totalPointsDiscountAmount":0,"totalCardDiscountAmount":0,"totalBalanceDiscountAmount":0,"totalReduceAmount":0,"totalActualAmount":19.90,"totalWeikeReward":0.00,"totalInviterReward":0.00}},"rightsOrderList":[],"weikeTeamId":null,"inviterTeamId":null,"weikeTeamName":null,"inviterTeamName":null},"globalTicket":"28374-1702532881.294-saas-w1-739-24939582396","monitorTrackId":"e9a50f36-f72b-4e87-8a55-dd47c7e0bcaf"}
    }
    //获取微客-客户关系列表
    public static void distributorCustomerGet(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        //body.set("weikeWidList",new String[]{"10540470086","10898133920"});
        body.set("weikeWidList",new String[]{"10554880572"});
        body.set("pageSize",10);
        body.set("pageNum",1);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/customer/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"pageNum":1,"pageSize":10,"totalCount":4,"dataList":[{"customerWid":10692085363,"lastBindTime":"2023-12-07 13:47:36","validStatus":1,"becomeMemberTime":null},{"customerWid":10888684783,"lastBindTime":"2023-12-07 13:38:49","validStatus":1,"becomeMemberTime":null},{"customerWid":10898133920,"lastBindTime":"2023-12-14 13:26:55","validStatus":1,"becomeMemberTime":null},{"customerWid":10540470086,"lastBindTime":"2023-12-14 13:30:15","validStatus":1,"becomeMemberTime":null}]},"globalTicket":"28374-1702533466.116-saas-w1-751-24940048126","monitorTrackId":"2bf42010-d5d3-4b40-be4d-4bafd0435cfb"}
    }
    //查询客户-微客关系
    public static void customerDistributorGet(String wid){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        //body.set("customerWidList",new String[]{"10540470086","10898133920"});
        body.set("customerWidList",new String[]{wid});
        body.set("isBind",1);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/customer/distributor/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"wid":10540470086,"leaderId":2882449189,"leaderLevelId":100099798,"leaderPhone":null,"leaderNickname":null,"inviterId":2487564112,"inviterPhone":"null","inviterNickname":null,"inviterLevelId":100099798,"identityType":1,"firstBindTime":"2023-08-10 13:19:45","lastBindTime":"2023-08-10 13:19:45","validStatus":1,"isBind":1,"isForever":1,"expireTime":"2123-08-10 13:19:45","shareWay":1,"bindWay":1,"shareWayName":"分享链接","shareChannel":2},"globalTicket":"28368-1702531335.488-saas-w1-747-24938448341","monitorTrackId":"e82c1659-e0fa-406a-9347-76bc5e4731d1"}
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"wid":10898133920,"leaderId":10540470086,"leaderLevelId":100099798,"leaderPhone":null,"leaderNickname":null,"inviterId":2882449189,"inviterPhone":"null","inviterNickname":null,"inviterLevelId":100099798,"identityType":1,"firstBindTime":"2023-12-14 13:26:55","lastBindTime":"2023-12-14 13:26:55","validStatus":1,"isBind":1,"isForever":1,"expireTime":"2123-12-14 13:26:55","shareWay":6,"bindWay":6,"shareWayName":"手动修改","shareChannel":3},"globalTicket":"389-1702531772.559-saas-w1-747-24868549092","monitorTrackId":"6595b614-0bbd-4ac5-baff-21f98f4c9626"}
    }

    //批量查询微客状态(是否微客)
    public static void getDistributorStatus(String wid){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        //body.set("customerWidList",new String[]{"10540470086","10898133920","10905451904"});
        //body.set("customerWidList",new String[]{"10898133920"});
        body.set("customerWidList",new String[]{wid});
        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/status/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"weikeInfoList":[{"wid":10540470086,"inviterId":null,"applyTime":null,"levelId":100099798,"levelName":null,"weikeStatus":1},{"wid":10898133920,"inviterId":null,"applyTime":null,"levelId":100155100,"levelName":null,"weikeStatus":1}]},"globalTicket":"8305-1702533800.754-saas-w1-749-25183599703","monitorTrackId":"ed49f210-967e-46f8-a55f-febeca81207f"}
    }

    //新建客户微客关系
    public static void customerDistributorBind(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("vidType",10);
        body.set("weikeWid","2514761463");
        List<String> customerWidList = new ArrayList<>();
        customerWidList.add("10898133920");
        customerWidList.add("10909350293");
        body.set("customerWidList",customerWidList);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/customer/distributor/bind?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"failedCount":0,"failedList":[]},"globalTicket":"28369-1702530600.141-saas-w1-754-24937960392","monitorTrackId":"243d19b2-3eec-4a36-b18a-ff07805051c0"}
    }

    //修改微客-邀请人关系
    public static void updateDistributorInviter(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("vidType",10);
        body.set("type",1);
        body.set("inviterWid","2882449189");
        List<String> weikeWidList = new ArrayList<>();
        weikeWidList.add("10540470086");
        body.set("weikeWidList",weikeWidList);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/inviter/updateList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"failedCount":0,"failedList":[]},"globalTicket":"28369-1702530600.141-saas-w1-754-24937960392","monitorTrackId":"243d19b2-3eec-4a36-b18a-ff07805051c0"}
    }

    //冻结微客
    public static void freezeDistributorList(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        //body.set("vidType",10);
        List<String> weikeWidList = new ArrayList<>();
        weikeWidList.add("11123441088");
        body.set("weikeWidList",weikeWidList);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/freezeList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"failedCount":0,"failedList":[]},"globalTicket":"8305-1702525964.644-saas-w1-751-25177841353","monitorTrackId":"04113025-8099-41fb-828a-2b0f4bd26c03"}
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"pageNum":1,"pageSize":10,"totalCount":1,"responseVOList":[{"wid":10898133920,"weikeWid":10898133920,"status":0,"levelId":100155100,"inviterId":null,"applyTime":"2023-12-14 11:09:17","phone":null,"nickname":null,"headUrl":null,"levelName":null,"inviterPhone":null,"inviterName":null,"weikeDetailUrl":{"webUrl":"http://master.saas.weimob.com/bos/products/ecTweeter/4002554743846/{key}/weike/details?wid=10898133920","h5Url":null,"miniUrl":null},"customFieldList":null}]},"globalTicket":"1995541878026371584","monitorTrackId":"9f1bcd44-28fa-4274-b535-293219a4de59"}

    }
    //解冻微客
    public static void unfreezeDistributorList(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        //body.set("vidType",10);
        List<String> weikeWidList = new ArrayList<>();
        weikeWidList.add("10898133920");
        body.set("weikeWidList",weikeWidList);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/unfreezeList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"failedCount":0,"failedList":[]},"globalTicket":"8305-1702526011.767-saas-w1-753-25177873713","monitorTrackId":"9297a0d7-aedd-4c71-8fb3-96bcb04d5e5f"}
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"pageNum":1,"pageSize":10,"totalCount":1,"responseVOList":[{"wid":10898133920,"weikeWid":10898133920,"status":1,"levelId":100155100,"inviterId":null,"applyTime":"2023-12-14 11:09:17","phone":null,"nickname":null,"headUrl":null,"levelName":null,"inviterPhone":null,"inviterName":null,"weikeDetailUrl":{"webUrl":"http://master.saas.weimob.com/bos/products/ecTweeter/4002554743846/{key}/weike/details?wid=10898133920","h5Url":null,"miniUrl":null},"customFieldList":null}]},"globalTicket":"1995542670481392128","monitorTrackId":"3fb43605-00df-4c10-affe-7d9b454e90e2"}

    }
    //修改微客等级
    public static void updateDistributorLevel(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        //body.set("vidType",10);
        //body.set("targetLevelId",100155100);
        body.set("targetLevelId",100223747);//100223747
        List<String> weikeWidList = new ArrayList<>();
        weikeWidList.add("2943537479");
        body.set("weikeWidList",weikeWidList);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/level/updateList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"failedCount":0,"failedList":[]},"globalTicket":"393-1702602309.496-saas-w1-751-24921735310","monitorTrackId":"53c95f67-2237-4898-a1a0-ca1e2937b9b7"}
    }

    //添加微客
    public static void createDistributor(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("vidType",10);
        List<String> customerWidList = new ArrayList<>();
        customerWidList.add("10898133920");
        body.set("customerWidList",customerWidList);

        System.out.println(body);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/create?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"failedCount":0,"failedList":[]},"globalTicket":"30972-1702459273.898-saas-w1-747-24887167549","monitorTrackId":"044ea9e9-dc92-4bfa-bc57-71786922896f"}
    }

    //更新客户信息
    public static void updateCustomer(String wid,String name){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("wid",wid);
        body.set("name",name);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_crm/v2.0/customer/update?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"bizErrmsg":"","errcode":"0","errmsg":""},"data":{"isChange":true,"result":true},"globalTicket":"9783-1702459169.677-saas-w1-735-25130130403","monitorTrackId":""}
    }

    //导入客户
    public static void importCustomer(){
        JSONObject body = new JSONObject();
        body.set("importType",1);
        List userList = new ArrayList();
        JSONObject user1 = new JSONObject();
        user1.set("phone","13077303941");
        user1.set("userName","何月姣");
        userList.add(user1);
        JSONObject user2 = new JSONObject();
        user2.set("phone","13395705881");
        user2.set("userName","张佳裕");
        userList.add(user2);
        JSONObject user3 = new JSONObject();
        user3.set("phone","18051032131");
        user3.set("userName","小叮");
        userList.add(user3);
        body.set("userList",userList);
        JSONObject user4 = new JSONObject();
        user4.set("phone","18136655900");
        user4.set("userName","刘女士");
        userList.add(user4);
        body.set("userList",userList);
        JSONObject user5 = new JSONObject();
        user5.set("phone","18961167771");
        user5.set("userName","Jc");
        userList.add(user5);
        body.set("userList",userList);

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_crm/v2.0/customer/import?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"bizErrmsg":"","errcode":"0","errmsg":""},"data":{"errorCnt":0,"errorList":[],"successCnt":1,"successList":[{"phone":"18867363985","userKey":"0","wid":10898133920}]},"globalTicket":"30974-1702457494.982-saas-w1-735-24885847236","monitorTrackId":""}
        //{"code":{"bizErrmsg":"","errcode":"0","errmsg":""},"data":{"errorCnt":1,"errorList":[{"errorMessage":"该客户已存在","phone":"18867363985","userKey":"0","wid":10898133920}],"successCnt":0,"successList":[]},"globalTicket":"390-1702521003.435-saas-w1-735-24860602001","monitorTrackId":""}
    }
    //商家查询用户信息
    public static String getUserInfo(String phone,String wid){
        JSONObject body = new JSONObject();
        body.set("wid",wid);
        body.set("phone",phone);//"18867363985"
        //body.set("zone","000731");

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/user/info/get?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        return resultStr;
        //{"globalTicket":"30971-1702456268.789-saas-w1-726-24884909532","code":{"errcode":900140010010004,"errmsg":"账号不存在"},"data":null}
        //{"globalTicket":"9792-1702457518.113-saas-w1-726-25128903731","code":{"errcode":0,"errmsg":"success"},"data":{"bosId":4002554743846,"phone":"18867363985","zone":"","wid":10898133920,"nickName":"","avatar":""}}
        //{"globalTicket":"2306-1702459191.587-saas-w1-726-24817181504","code":{"errcode":0,"errmsg":"success"},"data":{"bosId":4002554743846,"phone":"18867363985","zone":"","wid":10898133920,"nickName":"","avatar":""}}
    }
    //更新手机号
    public static void updatePhone(){
        JSONObject body = new JSONObject();
        body.set("wid","11123441088");
        //{"globalTicket":"28375-1702519144.344-saas-w1-730-24929293605","code":{"errcode":900140010010004,"errmsg":"账号不存在"},"data":null}
        body.set("oldPhone","13290053690");
        body.set("oldZone","000731");
        //{"globalTicket":"28372-1702519164.561-saas-w1-730-24929309439","code":{"errcode":900140010010082,"errmsg":"旧手机号未绑定账号"},"data":null}
        body.set("newPhone","13290053691");
        //body.set("newZone","0086");

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/user/phone/update?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"395-1702519176.270-saas-w1-730-24859175927","code":{"errcode":0,"errmsg":"响应成功"},"data":true}
    }
    //客户搜索 --- 跳到微信区了 -- 这个待定吧
    public static void searchUserInfo(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("vidType",2);
        body.set("pageSize",10);
        body.set("pageNum",1);
        body.set("isReturnPageResult",1);

        List<String> fields = new ArrayList<>();
        fields.add("nickname");
        fields.add("wid");
        fields.add("phone");
        body.set("fields",fields);

        /*List query = new ArrayList<>();
        Map<String,Object> param = new HashMap<>();
        param.put("field","name");
        param.put("value","健身");
        query.add(param);
        body.set("query",query);*/
        /*List query = new ArrayList<>();
        Map<String,Object> param = new HashMap<>();
        param.put("field","wid");
        param.put("value","10905451904");
        query.add(param);
        body.set("query",query);*/

        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.1/user/search?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"globalTicket":"28369-1702602341.651-saas-w1-719-24992213212","data":{"totalSize":1,"result":"[{\"wid\":\"10898133920\",\"phone\":\"18867363985\",\"nickname\":\"\"}]","cursor":null},"code":{"errcode":"0","errmsg":"success"}}
        //{"globalTicket":"389-1702869970.282-saas-w1-719-25156829777","data":{"totalSize":2,"result":"[{\"wid\":\"3015763103\",\"phone\":\"18673159250\",\"nickname\":\"营养师察察\"},{\"wid\":\"2710068364\",\"phone\":\"17752886899\",\"nickname\":\"营养师洋洋\"}]","cursor":null},"code":{"errcode":"0","errmsg":"success"}}
    }


    //查询微客等级设置列表
    public static void getLevelList(){
        JSONObject body = new JSONObject();
        body.set("vid","6001490628846");
        body.set("vidType",10);
        JSONObject string = HttpUtils.sendPost("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/setting/level/getList?accesstoken="+postRequestWithSign(),null,body);
        System.out.println(string);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"levelList":[{"levelId":100099798,"levelName":"空白"},{"levelId":100099807,"levelName":"WE商城KOC"},{"levelId":100155100,"levelName":"外部KOC"},{"levelId":100219135,"levelName":"教练组"},{"levelId":100221052,"levelName":"营养师"}]},"globalTicket":"28371-1702523919.886-saas-w1-562-24933049170","monitorTrackId":"bd4f5900-f7b2-44ba-8cf0-f58099a2b729"}

        //String string = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/setting/level/getList?accesstoken="+postRequestWithSign(),new HashMap<>());
        //{"code":{"errcode":"003346660010500","errmsg":"Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported"},"data":null,"globalTicket":"9791-1702446342.371-saas-w1-778-25119818670","monitorTrackId":null}


    }
    //查询微客信息列表
    public static void getDistributorList(Long wid){
        JSONObject body = new JSONObject();
        body.set("vid","6016334399846");

        /*body.set("startTime","2023-12-14 10:00:00");
        body.set("endTime","2023-12-14 15:00:00");*/

        /*body.set("searchType",1);
        body.set("searchKeyword","18867363985");*/

        if(wid==null || "".equals(wid)){
            body.set("pageSize",50);
            body.set("pageNum",20);
        }else{
            List<Long> weikeWidList = new ArrayList<>();
            weikeWidList.add(wid);
            body.set("weikeWidList",weikeWidList);
        }
        body.set("queryCustomFields",true);
        body.set("queryLevelInfo",true);
        body.set("queryUserInfo",true);
        body.set("queryTeamInfo",true);
        String resultStr = HttpUtil.post("https://dopen.weimob.com/apigw/weimob_distribution/v2.0/distributor/getList?accesstoken="+postRequestWithSign(), body.toString());
        System.out.println(resultStr);
        //{"code":{"errcode":"0","errmsg":"success"},"data":{"pageNum":1,"pageSize":100,"totalCount":1,"responseVOList":[{"wid":10898133920,"weikeWid":10898133920,"status":1,"levelId":100099798,"inviterId":null,"applyTime":"2023-12-14 11:09:17","phone":null,"nickname":null,"headUrl":null,"levelName":null,"inviterPhone":null,"inviterName":null,"weikeDetailUrl":{"webUrl":"http://master.saas.weimob.com/bos/products/ecTweeter/4002554743846/{key}/weike/details?wid=10898133920","h5Url":null,"miniUrl":null},"customFieldList":null}]},"globalTicket":"1995505983809484288","monitorTrackId":"f1f9b40a-e5e5-430a-9094-d8c69c08ef8b"}
    }

    public static void getOrg(){
        JSONObject body = new JSONObject();
        //JSONObject String = HttpUtil.sendPost("https://dopen.weimob.com/apigw/bos/v2.0/organization/root/get?accesstoken="+postRequestWithSign(),null,body);
        //JSONObject String = HttpUtil.doGet("https://dopen.weimob.com/apigw/bos/v2.0/organization/root/get?accesstoken="+postRequestWithSign());
        //System.out.println(String);
        //{"globalTicket":"30973-1702438603.641-saas-w1-533-24871330603","code":{"errcode":"000010011011001","errmsg":"bosId is null"},"data":null}
        //{"globalTicket":"2305-1702449878.625-saas-w1-533-24809694917","code":{"errcode":"0","errmsg":"success"},"data":{"vid":6001490628846}}
        String string2 = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/organization/root/get?accesstoken="+postRequestWithSign(), "{}");

        System.out.println(string2);
    }
    public static void getBos(){
        String string2 = HttpUtil.post("https://dopen.weimob.com/apigw/bos/v2.0/info/get?accesstoken="+postRequestWithSign(), "{}");
        System.out.println(string2);
    }

    /**
     * 获取第三方平台的 AccessToken
     * @return
     * @throws Exception
     */
    public static String postRequestWithSign() {
        if("0".equals("1")){
            return "c4980bdf-68fc-43a3-8457-d50834fc1951";
        }
        JSONObject body = new JSONObject();
        body.set("shopType", "public_account_id");
        body.set("shopId", "4002554743846");//只有一个店铺，生产店铺
        //body.set("shopId", "4021848028846");//微商城测试店铺  -- 不知道分销功能 -- {"code":{"errcode":"001450000009984","errmsg":"不支持接口版本","globalTicket":"25524-1715306306.869-saas-w1-729-33143257998","monitorTrackId":"8bc09e20-56bb-4f06-a799-ddf4e8c7c740"},"data":null}
        //body.set("shopId", "4021842032846");//BTW测试店铺
        String sign = MD5.create().digestHex(body +"#5601291336c76762f1d56ce5b45b2419");
        JSONObject header = new JSONObject();
        header.set("X-SIGN",sign);
        header.set("X-TRACEID", UUID.randomUUID());
        header.set("X-APPKEY", "10067615200");
        JSONObject result = HttpUtils.sendPost("https://wedata.gymcity.com.cn/openapi/third/getWeiMengToken", header, body);
        //System.out.println(result);
        //System.out.println(result.getJSONObject("data").getStr("access_token"));
        return result.getJSONObject("data").getStr("access_token");
    }
}
